package com.yupi.apiback.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yupi.apiback.model.dto.interfaceInfo.InterfacePageRequest;
import com.yupi.apiback.model.entity.InterfaceInfo;
import org.apache.ibatis.annotations.Param;

/**
 * @author yanghaifeng
 * @description 针对表【interface_info(接口信息)】的数据库操作Mapper
 * @createDate 2024-01-18 15:49:55
 * @Entity com.yupi.project.model.entity.InterfaceInfo
 */
public interface InterfaceInfoMapper extends BaseMapper<InterfaceInfo> {

    /**
     * 管理员分页查询
     *
     * @param condition 搜索条件
     * @param page      分页对象
     * @return 接口信息
     */
    Page<InterfaceInfo> adminPage(@Param("dto") InterfacePageRequest condition, @Param("page") Page<InterfaceInfo> page);


    /**
     * 普通用户分页查询
     *
     * @param condition 搜索条件
     * @param page      分页对象
     * @return 接口信息
     */
    Page<InterfaceInfo> userPage(@Param("dto") InterfacePageRequest condition, @Param("page") Page<InterfaceInfo> page);
}




